/**
 * @date 10:42:10 AM
 * SubjectLessonAPPServiceImpl.java
 * Administrator
 * TODO
 */
package com.qs.education.service.impl;
import org.springframework.stereotype.Service;
import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.entity.EducationQuestion;
import com.qs.education.bean.entity.EducationSubjectLesson;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.ISubjectLessonAPPService;
/**
 * @class SubjectLessonAPPServiceImpl	
 * @author Warren
 * @description
 * @date Nov 20, 2018 
 */
@Service
public class SubjectLessonAPPServiceImpl extends BaseService implements ISubjectLessonAPPService{

	/**
	 * @author Warren
	 * @return ResponseListBean<EducationSubjectLesson>
	 * @description 获取所有
	 * @date Nov 20, 2018
	 */
	@Override
	public ResponseListBean<EducationSubjectLesson> getALL() {
		ResponseListBean<EducationSubjectLesson> responselistBean = apiCaller.getALLSubjectLesson();
		return responselistBean;
	}

	/**
	 * @Description 根据课时 选择题目和数量
	 * @author Leon
	 * @date   Nov 20, 2018
	 * @param  
	 * @return ResponseListBean<EducationSubjectLesson>
	 */
	@Override
	public ResponseListBean<EducationSubjectLesson> selectTopicAndNumber(String lessonIds) {
		ResponseListBean<EducationSubjectLesson> lessonList = apiCaller.selectTopicAndNumber(lessonIds);
		return lessonList;
	}

	/**
	 * @Description 根据选择的课时 题目数量  场景  以及 题目难度进行 智能组题
	 * @author Leon
	 * @date   Nov 21, 2018
	 * @param  params：[
	 * 					{lessonId:1,number:2},
	 * 					{lessonId:2,number:3}
	 * 				  ]
	 * 		   scenes: 场景
	 * 		   level ： 等级
	 * @return ResponseListBean<EducationQuestion>
	 */
	@Override
	public ResponseListBean<EducationQuestion> getQuestionListByLesson(String params, String scenes, String level) {
		ResponseListBean<EducationQuestion> questionList = apiCaller.getQuestionListByLesson(params, scenes, level);
		return questionList;
	}
}
